from django.conf.urls.defaults import *

urlpatterns = patterns('microblog.views',
    (r'^$', 'index'),

    # Entries
    (r'^e/add/$', 'entry_edit'),
    #(r'^e/(?P<entry_id>\d+)/$', 'entry_details'),

    # Connections
    (r'^c/find/$', 'find_friend'),
    (r'^c/add/(?P<username>[\w_-]+)/$', 'connection_add'),
    #(r'^c/(?P<connection_id>\d+)/$', 'connection_details'),
    (r'^c/(?P<connection_id>\d+)/accept/$', 'connection_accept'),
    (r'^c/(?P<connection_id>\d+)/block/$', 'connection_block'),
    (r'^c/(?P<connection_id>\d+)/delete/$', 'connection_delete'),

    # Users
    (r'^u/(?P<username>[\w_-]+)/$', 'user_details'),

    # Feeds
    (r'^u/(?P<username>[\w_-]+)/feeds/(?P<url>.*)/$', 'user_feeds'),
)

